package com.mallcloud.mall.admin.api.enums;

import cn.hutool.core.util.StrUtil;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 登陆类型 password|phone|openId
 *
 * TODO
 * 与这里冲突{@link com.mallcloud.mall.common.core.constant.enums.LoginTypeEnum}
 */
@Getter
@AllArgsConstructor
public enum LoginTypeEnum {

	password("password","密码"),
	phone("phone","手机号"),
	openId("openId","openId");

    private final String code;
    private final String description;

	public static String getAppLoginType(){
		return StrUtil.format("{}|{}", LoginTypeEnum.phone, LoginTypeEnum.openId);
	}

}
